package com.uuah.server.exception.transport;

import com.uuah.server.config.i18n.ServerMessages;
import com.uuah.server.exception.MessagingException;

/**
 *
 * TODO comment ...
 *
 * <p>
 * update record:updator，update time，update content and version
 * </p>
 *
 * @author <a href="jonny_quan@hotmail.com">jonny</a>
 * @date 2009 2009-3-27 下午01:44:51
 * @version 1.0.0
 */
public class MessageTypeNotSupportedException extends MessagingException {
	private static final long serialVersionUID = -3954838511333933643L;

	public MessageTypeNotSupportedException(Object message, Class adapterClass) {
		super(
				ServerMessages.messageNotSupportedByAdapter(
						(message != null ? message.getClass().getName()
								: "null"), (adapterClass != null ? adapterClass
								.getName() : "null class")), message);
	}

	public MessageTypeNotSupportedException(Object message, Class adapterClass,
			Throwable cause) {
		super(
				ServerMessages.messageNotSupportedByAdapter(
						(message != null ? message.getClass().getName()
								: "null"), (adapterClass != null ? adapterClass
								.getName() : "null class")), message, cause);
	}
}
